import 'package:flutter/material.dart';

class Rule extends StatefulWidget {
  @override
  _RuleState createState() => _RuleState();
}

class _RuleState extends State<Rule> {
  @override
  Widget build(BuildContext context) {
    return Card(
        margin: EdgeInsets.symmetric(vertical: 10, horizontal: 20),
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(20.0)),
          side: BorderSide(
            width: 0,
            color: Color.fromARGB(250, 211, 211, 211),
            style: BorderStyle.solid,
          ),
        ),
        child: Container(
          padding: EdgeInsets.all(10),
          child: Column(
            children: [
                Container(
                  margin: EdgeInsets.only(top: 5,left: 5),
                  alignment: Alignment.topLeft,
                  padding:EdgeInsets.only(left: 10),
                  decoration: BoxDecoration(
                      border: Border(
                        left: BorderSide(
                          width: 2,
                          color: Colors.cyanAccent
                        )
                      )
                  ),
                  child: Text(
                    "规则",
                    style: TextStyle(
                      fontSize: 18,
                      fontWeight: FontWeight.w900
                    ),
                  ),
                ),
              SizedBox(height: 5,),
              Text(
                "日日日日日日日日日日日日日日日日日日日日日Rii日日日日日IRRI日Rii大撒旦法撒旦法水电费fsadfsadf",
                style:TextStyle(
                    letterSpacing: 0.5,
                  fontWeight: FontWeight.w200,
                  fontSize: 12
                ),
              )
            ],
          ),
        ));
  }
}
